let patientTabBarList = [{
        "selectedIconPath": "/static/tabbar/selectedfoodrecord.png",
        "iconPath": "/static/tabbar/foodrecord.png",
        "pagePath": "/pages/foodrecord/foodrecord",
        "text": "食物"
    },
    {
        "selectedIconPath": "/static/tabbar/selectedbloodsugar.png",
        "iconPath": "/static/tabbar/bloodsugar.png",
        "pagePath": "/pages/bloodsugar/bloodsugar",
        "text": "血糖"
    },
    {
        "selectedIconPath": "/static/tabbar/selectedsportrecord.png",
        "iconPath": "/static/tabbar/sportrecord.png",
        "pagePath": "/pages/sportrecord/sportrecord",
        "text": "运动"
    },
    {
        "selectedIconPath": "/static/tabbar/selecteduserinfo.png",
        "iconPath": "/static/tabbar/userinfo.png",
        "pagePath": "/pages/userinfo/userinfo",
        "text": "我的"
    }
]



let doctorTabBarList = [{
        "selectedIconPath": "/static/tabbar/selectedfoodrecord.png",
        "iconPath": "/static/tabbar/foodrecord.png",
        "pagePath": "/pages/doctor/home/home",
        "text": "主页"
    },
    {
        "selectedIconPath": "/static/tabbar/selecteduserinfo.png",
        "iconPath": "/static/tabbar/userinfo.png",
        "pagePath": "/pages/userinfo/userinfo",
        "text": "我的"
    }
]



// // 更新角色
// const updateRole = (that, role) => {
//     tabData.tabBar.list[0].text = role + "首页";
//     updateTab(that);
// }

// // 更新底部高亮
// const updateIndex = (that, index) => {
//     tabData.tabIndex = index;
//     updateTab(that);
// }

// // 更新Tab状态
// const updateTab = (that) => {
//     if (typeof that.getTabBar === 'function' && that.getTabBar()) {
//         that.getTabBar().setData(tabData);
//     }
// }

// 将可调用的方法抛出让外面调用
module.exports = {
    patientTabBarList,
    doctorTabBarList,
    // updateRole,
    // updateTab,
    // updateIndex
}